<template>
  <div class="recommend">
    <div v-for="(item,index) in hrecommends" :key="index" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" :alt="item.title">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>
<script>
export default {
  name:'HomeRecommendView',
  props:{
    hrecommends:{
      type:Array,
      default(){
        return []
      }
    }
  },
  data() {
    return {
      
    }
  },
}
</script>
<style scoped>
.recommend{
  display: flex;
  width: 100%;
  padding: 10px 0 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 10px solid #eee;
}
.recommend-item{
  flex: 1;
}
.recommend-item img{
  width: 80%;
  margin-bottom: 10px;
}
</style>